<h2 class='nika_page_title'>Наша Галерея</h2>
<hr>

<div class="gallerymenu"><?php echo link_to('Галерея','media/index'); ?>
/ <?php echo link_to('Мои альбомы','media/showmyalbums'); ?> / <?php echo $album['title'] ?></div>
<br />
<br />
<br />


				<!-- 
<table>
<?php foreach($pager->getResults() as $video) { ?>
	<tr>
		<td width='30%'><?php echo $video['title']; ?> <?php echo $video['video']; ?>
		</td>
		
		<td><?php echo include_component('comment', 'showlist', array('entity_id'=>$video['id'], 'entity_type'=>'media')); ?>
		</td>
	</tr>
	<?php } ?>
</table>
				-->

<div style='text-align:center;'>
<?php if($pager->haveToPaginate()) {
	for ($i = 1; $i<$pager->getLastPage(); $i++)
	{
		 echo $i == $pager->getPage() ? " $i " : link_to(" $i ",'media/showvideoalbum?aid='.$album['id'].'&page='.$i);
?>
<?php }} ?>
</div>

<div>
	<?php foreach($pager->getResults() as $video) { ?>
<h2 class='nika_page_title'><?php echo $video['title']; ?></h3>
<div><div style='margin:0 auto; width:640px;height:385px'><?php echo $video['video']; ?></div></div>
<div style='margin:0 auto; width:524px;'><?php echo include_component('comment', 'showlist', array('entity_id'=>$video['id'], 'entity_type'=>'media')); ?>
</div>
	<?php } ?>
</div>